package com.laoxu.java.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 *  评论
 */
@Data
@TableName("tb_comment")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String replyTo;
    private String content;
    private Integer parentId;
    private Date createTime;

    @TableField(exist = false)
    private List<Comment> commentList;

}
